package com.nidu.demo.dict.convertor;

import com.nidu.demo.convertor.MapStructConfig;
import com.nidu.demo.dict.dto.DictTypeListQry;
import com.nidu.demo.dict.dto.DictTypePageQry;
import com.nidu.demo.dict.dto.DictTypeQry;
import com.nidu.demo.dict.model.DictTypeCriteria;
import org.mapstruct.Mapper;

/**
 * 字典类型查询条件转换器
 *
 * @author nidu
 */
@Mapper(config = MapStructConfig.class)
public interface DictTypeCriteriaConvertor {

    /**
     * 单个查询条件转换
     */
    DictTypeCriteria toDataObject(DictTypeQry qry);

    /**
     * 列表查询条件转换
     */
    DictTypeCriteria toDataObject(DictTypeListQry listQry);

    /**
     * 分页查询条件转换
     */
    DictTypeCriteria toDataObject(DictTypePageQry pageQry);
}
